package com.duobaoyu.dby.supply.biz.producer.message;

import com.duobaoyu.dby.supply.common.mq.remote.message.base.BaseMessage;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * 取消订单消息
 *
 * @author fengshaoyu
 * @version 1.0.0
 * @date 2023/10/12 14:34
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class OrderCancelMessage extends BaseMessage {
	private static final long serialVersionUID = -6357871535070239431L;
	/**
	 * 供应链交易单号
	 */
	private String supplyTradeSn;

	/**
	 * 供应链订单号
	 */
	private List<String> orderSnList;
	/**
	 * 取消订单取消前订单状态
	 * @see com.duobaoyu.dby.channel.adapter.enums.biz.order.OrderStatusEnum
	 */
	private Integer cancelBeforeOrderStatus;
}
